import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom';
import Government from '../firstPage/TomatoPestMonitoringSystem';
import Find from '../m3/Find';

const AppRouter = () => {
    return (
        <Router>
            <Routes>
                <Route path="/" element={<Navigate to="/government" replace />} />
                <Route path="/government" element={<Government />} />
                <Route path="/find" element={<Find />} />
            </Routes>
        </Router>
    );
};

export default AppRouter;
